import request from '@/axios/request';
import url from '@/axios/url';
const { mesUrl, adminUrl, dataUrl } = url();
// 导出url
export const exportUrl = `${mesUrl}mesUserExtend/export`
// 分页查询
export function getList (params = {}) {
  return request({
    url: `${mesUrl}mesUserExtend`,
    method: 'get',
    params,
  });
}
// 新增
export function rowCreate (data = {}) {
  return request({
    url: `${mesUrl}mesUserExtend`,
    method: 'post',
    data,
  });
}
// 修改
export function rowUpdate (data = {}) {
  return request({
    url: `${mesUrl}mesUserExtend`,
    method: 'put',
    data,
  });
}
// 删除
export function rowDel (id) {
  return request({
    url: `${mesUrl}mesUserExtend/${id}`,
    method: 'put',
  });
}
// 详情
export function rowDetail (id) {
  return request({
    url: `${mesUrl}mesUserExtend/info/${id}`,
    method: 'get',
  });
}

// 查询人员编码列表
export function getUserCodeList () {

}
// 查询线体编码列表
export function getLineCodeList (params) {
  return request({
    url: `${adminUrl}baseFactoryModeling/children`,
    method: 'get',
    params
  });
}
// 查询班组编码列表
export function getTeamCodeList (params) {
  return request({
    url: `${mesUrl}mesTeam/list`,
    method: 'get',
    params
  });
}
// 查询工位编码列表
export function getWorkCellCodeList (params) {
  return request({
    url: `${adminUrl}baseFactoryModeling/children`,
    method: "get",
    params
  });
}
// 查询学历列表
export function getEducationList () {
  return request({
    url: `${adminUrl}dict/type/education`,
    method: 'get',
  });
}
// 查询用户类型列表
export function getUserTypeList () {
  return request({
    url: `${adminUrl}dict/type/user_type`,
    method: 'get',
  });
}
// 查询岗位编码列表
export function getPostCodeList (params) {
  return request({
    url: `${adminUrl}post/select`,
    method: 'get',
    params
  });
}
// 查询职位编码列表
export function getPositionCodeList () {

  return request({
    url: `${adminUrl}dict/type/user_type`,
    method: 'get',
  });
}

// 查询员工类型列表
export function getEmployeeTypeList () {
  return request({
    url: `${adminUrl}dict/type/employee_type`,
    method: 'get',
  });
}
// 查询人员部门列表
export function getDepartmentList () {
  return request({
    url: `${adminUrl}dict/type/department`,
    method: 'get',
  });
}
// 查询工种类列表
export function getWorkTypeList () {
  return request({
    url: `${adminUrl}dict/type/work_type`,
    method: 'get',
  });
}
// 查询技能认证类型列表
export function getSkillsCertificationList () {
  return request({
    url: `${adminUrl}dict/type/skills_certification`,
    method: 'get',
  });
}